import request from '@/utils/request'

// 查询积分充值套餐列表
export function listPointsPackage(query) {
  return request({
    url: '/system/pointsPackage/list',
    method: 'get',
    params: query
  })
}

// 查询积分充值套餐详细
export function getPointsPackage(packageId) {
  return request({
    url: '/system/pointsPackage/' + packageId,
    method: 'get'
  })
}

// 新增积分充值套餐
export function addPointsPackage(data) {
  return request({
    url: '/system/pointsPackage',
    method: 'post',
    data: data
  })
}

// 修改积分充值套餐
export function updatePointsPackage(data) {
  return request({
    url: '/system/pointsPackage',
    method: 'put',
    data: data
  })
}

// 删除积分充值套餐
export function delPointsPackage(packageId) {
  return request({
    url: '/system/pointsPackage/' + packageId,
    method: 'delete'
  })
}
